package cz.muni.fi.pa165.pokemon.util;

import cz.muni.fi.pa165.pokemon.dto.StadiumTO;
import cz.muni.fi.pa165.pokemon.entity.Stadium;
import org.dozer.loader.api.BeanMappingBuilder;
import org.dozer.loader.api.FieldsMappingOptions;

/**
 *
 * @author Dusan Svancara
 */
public class TrainerEnumMapBuilder extends BeanMappingBuilder {

    @Override
    protected void configure() {
        mapping(Stadium.class, StadiumTO.class).fields("trainers", "trainers", FieldsMappingOptions.customConverter(EnumMapConverter.class));
    }
}
